﻿using System;
using System.Collections.Generic;
using System.Web.UI;
using eCommerce.Core.Domain.Brands;
using eCommerce.Core.Domain.Categorys;
using eCommerce.Core.Domain.Shops;

namespace eCommerce.Core.Domain.Products
{
    public class Product : BaseEntity
    {


        public virtual int ShopId { get; set; }

        public virtual Shop Shop { get; set; }


        public virtual string ProductName { get; set; }

        public virtual string ShortDescription { get; set; }

        public virtual string FullDescription { get; set; }

        public virtual bool Published { get; set; }

        public virtual bool Deleted { get; set; }

        public virtual DateTime CreatedOn{ get; set; }

        public virtual DateTime UpdatedOn{ get; set; }



        //public virtual IList<Item> Items { get; set; }


        public virtual int CategoryId { get; set; }
        public virtual Category  Category{ get; set; }

        public virtual int BrandId{ get; set; }
        public virtual Brand Brand{ get; set; }


        public virtual ProductAttributeKey ProductAttributeKey { get; set; }

        public virtual int? ProductAttributeKeyId { get; set; }
        public virtual ItemAttributeKey ItemAttributeKey { get; set; }

        public virtual int? ItemAttributeKeyId { get; set; }

        public virtual IList<ProductAttributeValue> ProductAttributeValues { get; set; }

        public virtual IList<ItemAttributeValue> ItemAttributeValues { get; set; }


        public virtual bool UseProductAttribute { get; set; }

        public virtual bool UseItemAttribute { get; set; }


        public virtual IList<Item> Items { get; set; }
    }
}